package org.sagemath.commandline;

import java.io.Console;

import junit.framework.Assert;

public class Client {
	private static final String TAG = "Client";
	
	private Console console;
	
	public Client() {
		console = System.console();
	}

	public static void main(String[] args) {
		Client client = new Client();
		if (client == null) return;
		client.loop();
	}
	
	private void loop() {
		Assert.assertNotNull(console);
		String line;
		while (true) {
			line = console.readLine("%s", "args");
			console.printf("%s", line);
		}
	}
	
}
